<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML>
<html >
<head>
	<meta charset="UTF-8">
	<title>凯胜项目管理系统</title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css" />
	<link rel="stylesheet" href="static/css/daohang.css" type="text/css" />
	<link rel="stylesheet" href="static/css/style.css" type="text/css" />
	<style type="text/css">
		.icon-while{
			background-image: url("img/glyphicons-halflings-white.png");
		}
		
		body{
			background-image:url("static/img/bg_main.jpg");
		}
	</style>
</head>
<body>
	<%@ include file="include/top2.jsp" %>
	<jsp:include page="include/top.jsp">
		<jsp:param value="folder" name="tag"/>
	</jsp:include>
	<div class="container">
		<div class="row">
			<%-- <jsp:include page="include/side.jsp">
				<jsp:param value="folder" name="tag"/>
			</jsp:include> --%>
			<div class="span10">
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
					<li class="active">
						<a href="task.html"><i class="icon-th"></i>文件列表</a>
					</li>
					<li class="pull-right"><i class="icon-plus"></i><a href="folder.jspx?m=toedit&id=${up.userid}" class="link-black">创建文件夹</a></li>
				</ul>
				<div class="wall">
					<table class="table table-striped">
						<thead>
							<tr>
								<th width="30px"></th>
								<th width="60%">名称</th>
								<th width="20%">大小</th>
								<th>创建人</th>
							</tr>
						</thead>
						<tbody>
						
						<c:forEach items="${folderList }" var="f">
							
							<c:choose>
								<c:when test="${fn:length(folderList)==0}">
									还没有文件夹！
								</c:when>
								<c:otherwise>
									<tr>
										<td>
											<img src="static/img/21.png"/>
										</td>
										<td><a href="filer.jspx?id=${f.id}">${f.folderName }</a></td>
										<td style="color:#0088cc;">${f.count}&nbsp;&nbsp; at&nbsp;&nbsp; ${f.sum}MB</td>
										<td>${f.user.userName}</td>
									</tr>
								</c:otherwise>
							</c:choose>
							
						</c:forEach>	
						
						</tbody>
					</table>
				</div>
			</div>
		</div>
		
	</div>
	
	<script type="text/javascript" src="static/js/jquery.js"></script>
	<script type="text/javascript" src="static/js/jqueryui.js"></script>
	<script type="text/javascript" src="static/js/jquery.illuminate.0.7.min.js"></script>
	
	<script type="text/javascript">
		$(document).ready(function(){
				
			$('#button').illuminate({
				'intensity': '0.5',
				'color': '#2c2c2c'
			});
				
		});
			
	</script>
</body>
</html>